package cn.butcher21.pojo;


import java.io.Serializable;

/**
 * butcher create in 2021/03/07/12:47,
 * <p>
 * 时间线实体，包括时间，内容
 */
public class TimeLineEntity implements Serializable {
    private String time = "";
    private String content = "";
    private String src = "";

    public TimeLineEntity() {
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public void setTime(String time) {
        this.time = time;
    }

    /**
     * 设置返回的时间线的真实内容
     *
     * @param content 真实内容
     */
    public void setContent(String content) {
        String trueContent = "";
        trueContent = " <li class=\"layui-timeline-item\"><i class=\"layui-icon layui-timeline-axis\">&#xe63f;</i><div class=\"layui-timeline-content layui-text\"><h3 class=\"layui-timeline-title\">" + this.time + "</h3><p>" + content + "</p><img src=\"" + this.src + "\" ></div></li>";
        this.content = trueContent;

    }

    @Override
    public String toString() {
        return "TimeLineEntity{" +
                "time='" + time + '\'' +
                ", content='" + content + '\'' +
                ", src='" + src + '\'' +
                '}';
    }


}